﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CDB.LinqModel.Data;

namespace CDB.LinqModel
{
    public partial class ArchitecturalFirm
    {
         #region Variable Declaration 
        private IDataRepository _dataObject;
        #endregion //Variable Declaration

        public ArchitecturalFirm(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<ArchitecturalFirm> GetAllFirmsByArchitectId(int architectId)
        {
            return _dataObject.GetAllFirmsByArchitectId(architectId);
        }
        public void DeleteFirmsByArchitectId(int architectId)
        {
            _dataObject.DeleteFirmsByArchitectId(architectId);
        }
        public void Create(List<ArchitecturalFirm> architectFirms)
        {
            _dataObject.CreateArchitectFirms(architectFirms);
        }
    }
}
